<?php echo $html->docType('xhtml11') ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
        <?php echo $html->charset(); ?>
        <title>
                <?php echo $title_for_layout; ?> / rhrn.ru
        </title>
        <?php
                echo $html->meta('icon');

                //echo $html->css('cake.generic');
                echo $html->css('style');
                echo $html->css('rhrnru');

                echo $scripts_for_layout;
        ?>


	<script type="text/javascript" src="http://www.google.com/jsapi"></script>
	<script type="text/javascript">
		google.load("jquery", "1.4.1");
		google.load("swfobject", "2.2");
	</script>
</head>
<body>
        <div id="container">
                <div id="header">
				<a href="/"><img id="logoimg" src="/img/rhrn-dot-ru.png" alt="rhrn.ru" title="rhrn.ru" /></a>
				<?php //echo $this->element('users/panel') ?>
                </div>
                <div id="content">

                        <?php $session->flash(); ?>

			<div id="leftside">
				<?php echo $content_for_layout ?>
			</div>

			<div id="rightside">
				<?php if (isset($articleTags)): ?>
					<?php echo $this->element('pages/tagscloud', array('tags'=>$articleTags, 'tagLegend'=>'Таги', 'tagLink'=>'articles/tags')) ?>
				<?php endif ?>
			</div>

                </div>
                <div id="footer">
                        powered by rhrn &copy; <?php echo date("Y") ?>
                </div>
        </div>
	<?php $this->element('sql_dump') ?>
        <?php //echo $this->cakeDebug; ?>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-2730821-1");
pageTracker._trackPageview();
} catch(err) {}</script>

</body>
</html>
